package cn.geracomium.util.web;

import java.util.Set;

/**
 * Created by {wang jian} on 2018/06/26.
 */
public class StringKit {

    public static boolean isBlank(String str) {
        return str == null || "".equals(str.trim());
    }

    public static boolean notBlank(String str) {
        return str != null && !"".equals(str.trim());
    }

    public static Object[] set2ObjectArray(Set set) {
        Object[] objects = new Object[set.size()];
        return set.toArray(objects);
    }
}
